﻿$(function () {
    var search = $("#indexSearch");
    search.focus(function () {
        search.val("");
    });
    search.blur(function () {
        if (search.val() == "")
            search.val("会员或机构搜索");
    })
    $("#btnSearch").click(function () {
        if (search.val() == "" || search.val() == "会员或机构搜索") {
            alert("请输入搜索关键字");
            return;
        }
        location.href = "/album/class.aspx?key=" + search.val();
    })
})